import { Component, Input } from '@angular/core';
import { PlcConfig } from 'src/components/scenarios/models';

@Component({
  selector: 'app-plc-info',
  templateUrl: './plc-info.component.html',
  styleUrl: './plc-info.component.scss'
})
export class PlcInfoComponent {
  private _plc: PlcConfig = {
    Ip: "",
    Port: 102,
    Interval: 1000,
  };
  @Input()
  public get plc(): PlcConfig {
    return this._plc;
  }
  public set plc(value: PlcConfig) {
    this._plc = value;
  }
}
